
    import { request } from "@umijs/max";
    export const addApi = (data: any) => {
      return request('/dict/add', {
        method: 'POST',
        data: data,
      });
    }
    
    export const selectListApi = (data: any) => {
      return request('/dict/selectList', {
        method: 'POST',
        data: data,
      });
    }
    
    export const deleteApi = (id: number) => {
      return request('/dict/delete', {
        method: 'POST',
        data: {
          ids:[id]
        },
      });
    }
    export const updateApi = (data: any) => {
      return request('/dict/update', {
        method: 'POST',
        data: data,
      });
    }
    
    export const sortApi = (data: any[]) => {
      return request('/dict/sort', {
        method: 'POST',
        data: {list:data},
      });
    }
    
    export const selectOneApi = (id: any) => {
      return request('/dict/selectOne', {
        method: 'POST',
        data: { id },
      });
    }
        
        
        